package com.woniuxy.booth.service.impl;

import com.woniuxy.booth.bean.RoleBean;
import com.woniuxy.booth.mapper.RoleMapper;
import com.woniuxy.booth.service.IRoleService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author linke
 * @version 1.0
 * @className: RoleServiceImpl
 * @description: 角色接口实现类
 * @date 2021/11/15 1:25
 */
@Transactional(readOnly = true)
@Service
public class RoleServiceImpl implements IRoleService{
    @Resource
    private RoleMapper roleMapper;

    @Override
    public List<RoleBean> findAll() {
        return roleMapper.findAll();
    }
}
